<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Grey Finders | Resume Management System (RMS)</title>
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl('css/stylesheet.css')?>" />
<script type="text/javascript" src="<?php echo $this->baseUrl('js/jquery-1.8.0.min.js')?>"></script>
<script>
function checkLogin(){
   $.ajax({
        url: '/resume/check-login',
        success: function(result){
            if(!result) document.location.href = '/user/login';
        }
   });
}
</script>
</head>
<body>
<div id="wrapper">
	<div class="top">
		<h1>GREY FINDERS</h1>
	</div>
	<div class="header clearfix">
	<?php 
		//$moduleName = Zend_Controller_Front::getInstance()->getRequest()->getModuleName();  
		$controllerName = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();
		$sess = new Zend_Session_Namespace ( 'zs_User' );  
	?>
		<ul class="main-menu">
			<li <?php echo ($controllerName == 'resume')? 'class="active"': '' ?>><a href="/resume">Resume</a></li>
			<li <?php echo ($controllerName == 'company')? 'class="active"': '' ?>><a href="/company">Company</a></li>
			<li <?php echo ($controllerName == 'vacancy')? 'class="active"': '' ?>><a href="/vacancy">Vacancy</a></li>
			<li <?php echo ($controllerName == 'clients')? 'class="active"': '' ?>><a href="/clients">Clients</a></li>
			<?php if($sess->isAdmin):?>
			<li <?php echo ($controllerName == 'profile')? 'class="active"': '' ?>><a href="/profile">User Management</a></li>
			<?php endif;?>
		</ul>
		<div class="user-login">
			<p>Welcome <a href="/user/view-profile/id/<?php echo $sess->consultant_id; ?>"><?php echo trim($sess->fullname)?></a></p>|  <a href="/user/logout"><strong>Logout</strong></a>
		</div>
	</div>
	<div class="content clearfix">
